package com.lswms.modules.lswms.service.base;

import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.lswms.common.page.PageData;
import com.lswms.common.service.CrudService;
import com.lswms.modules.lswms.dto.base.SkuDTO;
import com.lswms.modules.lswms.entity.base.SkuEntity;

/**
 * ${comments}
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-06-06
 */
public interface SkuService extends CrudService<SkuEntity, SkuDTO> {

	String valideAndSave(SkuDTO dto);

	String valideAndUpdate(SkuDTO dto);

	PageData<SkuEntity> selectPageBySql(Map<String, Object> params);

	String deleteByKey(String[] skus);

	SkuEntity getKey(Long id);

    PageData<SkuEntity> getStock(Map<String, Object> params);

	SkuEntity getSkuByCode(String sku);

	String importExcel(MultipartFile file);

}